<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.emp.domain.EmpLearn" table="emp_learn">
       <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				       <param name="sequence">EMP_LEARN_ID_SEQ</param>
            </generator>
        </id>
        <property name="startDate"  type="timestamp">
            <column name="start_date" length="23"/>
        </property>
        <property name="endDate" type="timestamp">
            <column name="end_date" length="23"/>
        </property>

        <property name="schoolName" type="string">
             <column name="school_name" length="50"/>
        </property>

        <property name="series" type="string">
             <column name="series" length="50"/>
        </property>

        <property name="specialty" type="string">
             <column name="specialty" length="50"/>
        </property>
        
        <property name="grade" type="string">
             <column name="grade" length="50"/>
        </property>

        <property name="degree" type="string">
            <column name="degree" length="50"/>
        </property>
        <many-to-one name="employee" class="cn.firstsoft.modules.emp.domain.Employee" fetch="select">
            <column name="emp_id"/>
        </many-to-one>
    </class>
</hibernate-mapping>
